Comets that "bounced" from one planet to another could carry the building blocks of life finds a new study.