The S&P 500 reversed lower on Tuesday, dipping slightly from a record high as rising bond yields kept sentiment in check.