Investigating patterns of animal domestication using ancient DNA