Macy’s said ​it was taking a “prudent approach” to its outlook, as it ​forecast a fall in annual revenue and profit, citing macroeconomic and geopolitical risks that could affect consumer spending.