Royal Bank of Scotland reached an out-of-court deal to settle a lawsuit alleging it misled investors just before its near collapse in 2008