Donald Trump has surged ahead in the US presidential election race as the first states declare their winner.