Social Network Size and Cognitive Functioning in Middle-Aged Adults: Cross-Sectional and Longitudinal Associations