Consultant books £26m charge against loss-making contracts as costs rise