The distribution of badly approximable numbers and continuants with bounded digits