(Reuters) – U.S. stocks inched lower on Tuesday, with the S&P 500 retreating slightly from a record, as weakness in the energy and financial sectors outweighed gains in technology shares.