treatment of the mentally ill in the 19th century