France has rejected remarks by US President Donald Trump in which he said extremist attacks in Paris would have been different had people there been armed.