S&P 500 and Nasdaq end lower after hitting record highs

The S&P 500 and Nasdaq ended lower on Tuesday after hitting record highs earlier in the session, with investors digesting a jump in consumer prices in June and earnings from JPMorgan and Goldman Sachs that kicked off the quarterly reporting season.