Macy’s plans to close its namesake stores and open new Bloomingdale’s and Bluemercury locations reflect what’s working at the retailer.