Afghanistan was not safer with US presence: President Erdogan