Optimal Social Assistance and Unemployment Insurance in a Life-Cycle Model of Family Labor Supply and Savings