Wayfair’s losses narrow by more than $100 million after layoffs, even as sales dip