Macy’s rejects $5.8bn buyout bid in favour of cutting jobs to bolster profit