The Royal Bank of Scotland was once a famous Scottish institution; a bank with a reputation for prudence. But in October 2008, less than a decade after Fred Goodwin took over as chief executive, it came within hours of collapsing.