LONDON—Investors pumped money into U.S. Treasuries at the fastest pace in nearly two years in the week to Wednesday and yanked funds out of cash, inflation-linked debt, and credit as recession risks rose, BofA’s weekly flow report showed on Friday. Global equities saw a small $2.2 billion of inflows while investors pulled a massive $79.4…