Flexible univariate and multivariate models based on hidden truncation