CVS Health is closing 900 stores over the next three years, amounting to nearly 10% of its footprint, in response to the changing of "consumer buying patterns."