The accumulation of problems of social functioning as a long-term process: Women and men compared