Thousands of Scots with mental illness are not seeking help due to stigma, with many fearing they will be viewed as dangerous and unpredictable, according to new analysis.