The relationship between social functioning and psychiatric symptomatology in primary care