Group activities improve mental function in mild to moderate dementia, study finds