The world’s second largest fashion retailer is shutting stores as shoppers’ habits change.