Following a tense presidential election, equity markets roared to record highs – the S&P 500 put on its best weekly showing in over a year.