Amazon laid off workers at its brick-and-mortar grocery stores last week — the latest sign of the e-commerce giant's struggles to stand out in the competitive grocery landscape.