Czech author of 'The Metamorphosis' had a complex, contradictory relationship with Judaism, was fascinated by Yiddish theater, new book shows