The parent company for upscale home furnishings retailers Williams-Sonoma, Pottery Barn and West Elm plans to open new distribution centers and to permanently close as much as one quarter of its stores, shifting its focus to e-commerce from brick-and-mortar sales.