Venezuela's stock market has staged a dramatic rally following the capture of its ex-president Nicolás Maduro.