The shares of companies most exposed to the UK economy rallied strongly in the wake of the election result, which returned Boris Johnson with a majority of more than 50 seats.