Macy’s reported quarterly earnings that missed analysts’ expectations and said the full year would be weaker than expected.