Dog owners are healthier than people who don't own pets in several ways, research suggests.