Social skills begin to decline in late 30s and early 40s, study finds