UK inflation hit a 40-year high of 9 percent in April, the Office for National Statistics showed on Wednesday.