Past COVID infection provides at least 5 months of immunity, study shows