Optimistic thinking linked with lower cognitive abilities