Walgreens says it will close 1,200 stores by 2027, as earnings top estimates