The Tang dynasty, seen by many historians as a glittering peak in China's history, was brought to its knees by shifts in the monsoon cycle, according to a study.