Lower than expected inflation figures help S&P 500 claw back some of its losses