A simultaneous measurement of the QCD colour factors and the strong coupling