Donald Trump capped a chaotic day of July 4th celebrations with a triumphalist speech to thousands of people gathered on the National Mall in Washington.