Home Depot and Lowes are bucking the trend for retailers by reporting improved sales and positive growth outlooks.