U.S. inflation picked up a bit as higher prices for groceries and some imported goods were largely offset by cheaper gas, travel and rents.