The quality of your marriage could be affected by your genes, according to new research.