Resilience is a skill that can be cultivated, a psychologist explains