Pretreatment cognitive performance predicts survival in patients with leptomeningeal disease