Government borrowing is at its highest since the pandemic due to public sector pay rises and the high cost of borrowing, official figures show.