Time inconsistency as a rationale for public unemployment insurance