Companies are blaming the brick-and-mortar shrinkage on declining foot traffic, shifting shopper habits and inflation.