Ghosts are dying out as they have "limited lifespans" like humans, a study of several well-known haunted spots has revealed.