Indonesia and Malaysia have agreed to cooperate on preventing people using fire to clear land and to carry out cloud-seeding to induce rain.