Donald Trump attributed unrest in France to immigration, said he had warned Emmanuel Macron to close the borders and predicted Paris would soon become a Muslim city.