Estate agents groups merger is agreed