The Scottish government admits there are "unacceptable" problems with mental health services for the country's young people.