Measurements of branching fractions and time-dependent CP-violating asymmetries in B→η'K decays