Home Depot earnings beat, but retailer offers a tepid outlook as sales slide