Michel Barnier resigns as French prime minister