Ukraine says Russia has agreed to a proposed Ukraine post-war security guarantee which commits the US and its European allies to act if Russia attacks.