If the ribbon has pairs adjacent twisted pair won't help much.
If the noise is from the transformer, it is the magnetic field probably making the hum so run the cable farther from the transformer, even if it must be longer.
Alternatively you could shield the cable, perhaps wrap a couple of layers of mu-metal foil around it?
The only other thing I can suggest is that often transformers radiate asymetrically, so simply moving the cable to different positions relative to the transformer may make a difference. (this is why folks rotate toroidal transformers to minimize hum).