Ministry of Justice was department with highest average length of absence