The OBR has apologised after the unprecedented early release of its economic and fiscal outlook document ahead of the Budget.