Aralez Pharmaceuticals agrees to sell main operating businesses