President Emmanuel Macron says France will formally recognise the State of Palestine at the UN General Assembly.