A change in the frequency of earthquakes may foretell explosive volcanic eruptions, according to a new study.