Residual properties of groups defined by basic commutators