Walgreens Boots Alliance on Thursday entered into an agreement with private equity firm Sycamore Partners to go private. The deal is valued at $10 billion.