Macy's delivered solid results in a challenging retail environment, an analyst has said, despite the US department store retailer booking a drop in first-quarter sales and narrowing margins.