I do not think there is one specific cause that influences well-being and attachment but one may be the internal state of the family the child is in. If the parents are nurturing and get along well, the child will feel loved as well and be more securely attached. If the parents are constantly arguing and fighting or there are some tensions that can be felt by the child, the child's attachment would be affected negatively.