Cargill is leaving the fund management business by selling its CarVal Investors unit three years after spinning off its hedge fund group.