Hedge funds rush to unwind bets on falling markets as stocks surge