India’s ShopClues had positioned itself as an ecommerce giant before Amazon entered the picture. Then, a series of missteps led to the company’s hard fall.