UK inflation hits 40-year high of 9% as cost of food and energy soars