Donald Trump has won all seven swing states in the US presidential election, according to projections, giving him a decisive Electoral College victory over Vice President Kamala Harris.