Interest payments made on government debt hit the highest level on record in June as inflation surged.