Amag Pharmaceuticals Inc. said the company would divest two of women’s health products, after the drugmaker conducted a strategic review under pressure from hedge fund Caligan Partners.