S&P 500 hits record high as tech earnings impress investors