Consumer prices in April were up 3.4% from a year ago — a smaller annual increase than the month before.