Justin Welby warned Britain was going down a dangerous path of self-interest with Brexit.