Beachgoers form human chain to rescue family in water