COVID increases risk of long-term brain injury, study finds