U.S. consumer prices rose in July and the underlying trend continued to strengthen, pointing to a steady increase in inflation pressures that keeps the Federal Reserve on track to gradually raise interest rates.