Inflation fell in July to the lowest level in more than three years.