Planning slump hits councils’ finances