Analysis showed how much the UK could have grown if it had not exited the EU.