People over 65 are more likely to experience a second bout with the virus, according to a large study of medical records.