Church of England agrees draft legislation for women bishops