Russia and Ukraine confirmed on Friday that they had agreed to a three-day ceasefire announced by US President Donald Trump.