Cuba and the US have been in talks for weeks as an oil blockade has caused one of the worst energy crises on the island in decades.