The 10-year US Treasury yield, a yardstick for borrowing costs and asset prices globally, rose to 5.34%, its highest since 2002.