Consumption and labor supply with partial insurance : an analytical framework