Kirklees Council forced to borrow millions to repair public buildings