Risk and capital transfer in insurance groups