US department store retailer Macy's Inc is to close 35 to 40 underperforming stores early next year as it ramps up its omnichannel focus.