Home Depot has gotten a boost from sales of more expensive items and from growth in the average shopper’s ticket.