France's election campaign watchdog is investigating a hacking attack targeting presidential candidate Emmanuel Macron.