A deal is reached on a ceasefire and withdrawal of heavy weapons in eastern Ukraine, after all-night negotiations in Minsk.