Apollo to sell 49% stake in pharmacy biz