Nightmares could be early warning sign of disease, study says