The European Union's chief Brexit negotiator, Michel Barnier, has been appointed as the new French prime minister, the French presidency confirmed on Thursday.