Common infections may cause memory decline