Alibaba agreed to divest its entire stake in Sun Art Retail Group to Chinese private-equity firm DCP Capital.