Trajectories of working hours in later careers and their association with social and health-related factors: a follow-up study