Near-infrared imaging and the K − z relation for radio galaxies in the 7 C Redshift Survey