Pathways From Social Activities to Cognitive Functioning: The Role of Physical Activity and Mental Health