Six people have been arrested as part of a preliminary investigation into a suspected plan to attack French President Emmanuel Macron, an official close to the probe said.