Head of Scottish Episcopal Church announces retirement