Complete intensity and phase characterisation of optical pulse trains at terahertz repetition rates