Mr. Weil, Twitter’s former senior vice president for product, will become head of product for Instagram, one of Twitter’s biggest competitors.