Search for new physics in events with same-sign dileptons and b-tagged jets in pp collisions at $ \sqrt {s} = 7 $ TeV