Substructures in cold dark matter haloes