Sounds like Lars von Trier's The Idiots, though as far as I remember it's the other way round - about people who get a sexual thrill from impersonating the mentally ill. Made about 1994? Possibly later.