French President Emmanuel Macron was hit by an egg as he walked through a restaurant trade fair in Lyon on Monday, although the egg failed to break.