Investigating Cognitive Function in Clinical and Non-Clinical Samples Using Electroencephalography and Psychometric Assessment: A Comparative Study