Essays in labour economics: School leaving, unemployment and retirement