Companies that promise groceries delivered in 15 minutes surged during the pandemic—but are now in retreat.