A massive attack on Ukraine's energy infrastructure by Russia has cut power to more than a million people across the country as temperatures hover around zero.