Government says justices' clerks have a vital role to play in magistrates' future