Thailand has released 18 ‍Cambodian soldiers ‍it had detained since July, after the two countries agreed to a ceasefire.