The pharmacy chain will be taken private in a $10 billion deal