Detailed optical and near-infrared polarimetry, spectroscopy and broadband photometry of the afterglow of GRB 091018: Polarisation evolution