Donald Trump has declared victory in the presidential race, after several battleground states were called in his favour.