China’s ambitious campaign to revive its flagging stock market has made the yuan an unintended casualty, with record dividend payouts leading to outflows.