Direktøren for World Economic Forum går af, efter at det er kommet frem, at han har haft en relation til sexforbryder Jeffrey Epstein.