Justin Welby has announced he will resign following criticism of his handling of a report into a prolific child abuser associated with the Church of England.