Scientists have a new theory on why Earth was completely frozen 700 million years ago — and how it could happen again