A 55 year old gentleman is admitted to the neurology ward with a 4 week history of headache and visual changes particularly when bending forward or coughing. He is otherwise fit and well with only hypertension in his past medical history. On fundoscopy he has gross papilloedema bilaterally. What is the most important investigation?