President Emmanuel Macron will need to appoint a new prime minister for the second time after July's legislative elections led to a deeply divided parliament