Cognitive flexibility and changes in hopelessness across time: A moderation hypothesis