Capital allocation and risk management in insurance