ICC prosecutor resigns over sexual misconduct allegations