Cooling flows and the X-ray luminosity–temperature relation for clusters