After years of minimal interest rates, investors have been piling into money-market funds since 2022 to take advantage of higher rates. Now is the time to rebalance and diversify.