Home Depot beats Q4 expectations even as housing market remains challenged