The S&P 500 posted a weekly loss, selling off on Friday after data pointed to underlying price pressures.