Cognitive decline accelerated in over 50s during pandemic, study finds