Researchers have looked into which is the best treatment for insomnia: CBT or sleeping pills.