UK insurance firm RSA agrees to $9.4 billion takeover offer