U.S. consumer prices rise on strong gains in gasoline, rents