The UK's annual inflation stood steady at 4% in January despite surging energy prices, official data showed, amid a deepening cost of living crisis.