The effect of the COVID-19 pandemic on mental health in individuals with pre-existing mental illness