Investors tend to think of floating-rate bank loans as the cure for rising interest rates. But our research suggests that a rising-rate environment has historically been the worst time to buy loans.