A 29-year-old man presents with progressive ascending weakness over 5 days following a diarrhoeal illness. Examination reveals symmetrical flaccid weakness in the legs, areflexia and intact sensation. Respiratory function is currently normal. Guillain-Barré syndrome is suspected. Which investigation best confirms the diagnosis?