Macy's to slash 3,900 corporate jobs as the company copes with fallout from the coronavirus pandemic.