Thailand and Cambodia agree truce after border clashes