The stock market in the US was left in a frenzy after Donald Trump won the presidential elections, defeating rival Kamala Harris.