Hugo Chávez rewrote Venezuela's constitution, nationalised industries, and polarised a nation for two decades - leaving a legacy that is still tearing the country apart.