Home Depot narrowly beat Wall Street's fourth-quarter earnings and revenue expectations.