Socio-affective and cognitive predictors of social adaptation in vulnerable contexts