Hedge funds are slashing their stock exposure at the fastest rate in more than six years as a wave of volatility tied to some of their most-prominent bets forced a retreat from the market.