A political theory of regulation with some observations on railway abandonments