Our ancestors may have kept foxes as pets long before domestic dogs, archaeological evidence suggests.