The big box retailer said tariff costs and elevated mortgage rates have slowed consumer spending on new homes and remodeling projects.