The Princess of Wales almost lost her hat during the enthronement of the first female Archbishop of Canterbury.