Impact of gender, family and economic status on hopelessness, automatic thoughts, family environment and loneliness