Macy’s namesake stores have long served as an anchor for malls across the country, and its plans to close them will lead to widespread change.