In Compulsion, now at New York’s Public Theater, Mandy Patinkin portrays a writer whose obsession with Anne Frank drives him to the brink of madness