Dogs are humans' oldest companions, DNA shows