People who suffer from insomnia appear to have an increased risk of developing heart failure, according to the largest study to investigate the link.