The UK stock market is in long-term decline. To fix that, we must first recognise why equity markets exist and who they should serve