A new study reveals traits that lead to a happy relationship.