What is devolution and how does it work across the UK?

Boris Johnson has come under fire for reportedly describing devolution in Scotland as a “disaster”.