On best approximation by multivariate ridge functions with applications to generalized translation networks