Rent controls, as seen in most of Europe but us, is the compromise state - you can privately invest in housing but at a government-controlled rate of return that balances the needs of the tenants and halts the runaway rent inflation we're currently seeing.
Scottish Government has repeatedly looked at bringing these in, and I think it's the key solution.