The pharmaceutical giant Walgreens is set to close approximately 2,150 of its 8,600 US locations as part of a vast restructuring effort.