That's categorically untrue. Diesel-electric trains are not uncommon, but there are many, many trains driven directly mechanically or hydraulically by the diesel engines.
Nearly rode on one these just yesterday: https://en.m.wikipedia.org/wiki/British_Rail_Class_150