Macy's profit, sales rise even as some shoppers pull back