The greatest mass extinction of all time was triggered by climatic conditions that are beginning to reappear today, scientists warn.