The UK economy unexpectedly grew during first month of the Iran war, new official figures reveal.