Hysteria has long been associated with fanciful myths, but its history reveals how it has been used to control women’s behaviour and bodies