Here’s why Walgreens and CVS retail pharmacies are struggling — and what they’re doing to fix it