Michel Barnier, the EU's former Brexit negotiator, said he would run in France's presidential election primary.