A measurement of the millimetre emission and the Sunyaev–Zel'dovich effect associated with low-frequency radio sources