U.S. stocks struggle to hold gains Friday after the S&P 500 initially extended a push into record territory as bond yields fall despite data showing inflation running hot.