U.S. consumer prices rise modestly, but shelter costs firming