Digital real estate business Zillow says it’s getting out of the home-flipping business and laying off a quarter of its workforce.