Madagascar political rivals agree to unity government deal