Britain’s top civil servant steps down from powerful role