People who had a secure family upbringing are more likely to become parents, a new study says.