Home Depot has been hurt by higher interest rates, which have slowed housing turnover and demand for bigger projects.