Apparel company Stitch Fix said it will lay off workers as its CEO Elizabeth Spaulding steps down.