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