UK's top civil servant to resign amid Epstein turmoil