US stocks rise as S&P 500 sails past 5,000, boosted by cooling inflation data