The grocery delivery start-up changed its leadership, slashed its valuation and shifted its strategy after sales slowed.