Government borrowing costs are hitting multidecade highs around the world, reflecting anxiety about debt levels, deficits and inflation.