The company has been struggling following eight quarters of sales losses and mounting competition from retailers such as Wayfair and Walmart.