what was believed about mental illness in the 1800s