S&P 500 touches record high

Stocks gain as investors remain optimistic about the economy and corporate earnings.