Renewed fighting this month has killed at least 21 people in Thailand and 17 in Cambodia, while displacing around 800,000, officials have said.