US and Ukrainian officials have begun talks in Saudi Arabia to find a way to end the war with Russia.