Rich investors have been pouring more money into private equity to avoid a potential stock market downturn.