Macy’s topped adjusted earnings and sales estimates, but said revenue fell year over year and reiterated a cautious forecast.