Stocks rose to an all-time high on Monday, lifted by gains in tech and some reopening names, as sentiment around the coronavirus pandemic improved.