Stocks surged to record highs Wednesday as Republican Donald Trump has been projected to win the U.S. presidential election.