The Archbishop of Canterbury has resigned after a report found the Church of England covered up sexual abuse by a barrister.