Consumer prices rose 2.9 percent in the year since June 2017, a five-year high, while hourly wages fell 0.2 percent in the same period, according to federal data released Thursday.