Donald Trump's victory has led the US stock market to new record highs, defying surveys and analyzes that predicted a tight race in the US presidential election.