Researchers have figured out how genetic mutations can lead to heart defects at birth, according to a study.