The Office for Budget Responsibility said the state finances were facing ‘mounting risks’ in the face of growing debts.