The benefits of owning a dog -- and the surprising science behind it