Consumer prices moderated in April, but rising shelter and medical care costs boosted inflation pressures.