Councils forced to raid funds for overstretched state schools