Branching ratios for stopped pions in deuterium