Magellanic Cloud WC/WO Wolf–Rayet stars – I. Binary frequency and Roche lobe overflow formation