The UK is understood to be exploring the possibility of joining a trans-Pacific trade bloc after it leaves the European Union (EU), as part of plans to find alternative export markets.