Precise measurement of the fs /fd ratio of fragmentation fractions and of Bs0 decay branching fractions