From brick-and-mortar stores to e-commerce marketplaces, these publicly traded retail companies are adapting amid changing consumer habits and market conditions.