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