Global government borrowing is expected to reach a record $12.3tn this year, as a rise in defence and other spending by major economies and higher interest rates combine to push up debt levels.