Department stores, mall staples and specialty chains are among those trimming their footprints.