A growing number of children are out of school as home education in Scotland rises by almost 300% in a decade.