Measurement of general-relativistic precession in a black-hole binary