US inflation slows but remains elevated in sign that price pressures are easing only gradually