Power has been mostly restored in Cuba, two days after the national grid collapsed leaving 10 million people in the dark.