A Fife councillor has hit out after temporary traffic lights between St Andrews and Guardbridge failed at the weekend - sparking huge delays.