Peak mass in large-scale structure and dynamical friction