Semiparametric quantile modelling of hierarchical data