Clustering of salt fingers in double-diffusive convection leads to staircaselike stratification