US stocks rise after CPI shows inflation came in cooler than expected in July