Home Depot narrowly beat fourth-quarter earnings estimates, but it gave lackluster sales guidance as high interest rates and home prices pose challenges.