Twitter is launching a “buy now” button to enable users to buy things from artists and retailers immediately within the social network.