The world's largest home improvement retailer posted weaker-than-expected quarterly earnings and trimmed its full-year profit outlook, citing a sluggish housing market along with a lack of storms.