How did a weather event affect japans history in the 1200s?