Researchers have discovered a brain process common to sleep and ageing in research that could pave the way for new treatments for insomnia.