US stocks have inched lower, with the S&P 500 retreating slightly from a record, as weakness in the energy and financial sectors outweighed gains in technology shares.

US stocks have inched lower, with the S&P 500 retreating slightly from a record, as weakness in the energy and financial sectors outweighed gains in technology shares.