Evolution of the degree of substructures in simulated galaxy clusters