UK formally signs up to trans-Pacific trading bloc