Attrition is the ‘worst way’ to shrink federal public service, says former clerk