Drilling holes in the skull was never a migraine cure – but it was long thought to be