Climate and diversity: the role of history