Kyiv and Moscow have agreed to a naval ceasefire in separate deals with the US after peace talks in Saudi Arabia.