It was always my understanding that when you leave the Army or RAF, you resign your commission and therefore you are not entitled to use your rank any longer.
As the Senior Service, when a RN officer leaves the service, he retains his commission and therefore retains his rank. He doesn't even have to use (Retd) as he always holds his commission.
Correct?