S&P 500 hits record high as earnings eclipse trade war fears