Home Depot fell short of Wall Street’s sales estimates due to a drop in lumber prices and provided a muted outlook for the next fiscal year.