Fennel and cured ham casserole