US President Donald Trump has blamed immigration for the violent unrest in France, urging Paris to close its borders as mass protests descended into clashes, looting and arson.