Head of London police force resigns