A paedophile who left one of his child victims unable to sleep has walked free from court after being diagnosed with schizophrenia.