Emerging-market economies have hosted some of the year’s most dramatic asset swings, and hedge funds have been a powerful force behind them.