Luxury department store Nordstrom said it will close two Massachusetts locations in the next few months. Another national retailer is set to move into the locations.