Department stores have been struggling with stiff competition from online and off-price retailers.