Private equity firms have been stockpiling cash in recent years as rising markets made it harder for them to invest.