A study has suggested that they help those battling insomnia