Nearly a third of the U.S. retail pharmacies that were open from 2010 to 2020 had shuttered by 2021, study finds.