Chase has agreed to buy payments company WePay in the bank’s first sizable acquisition of a financial-technology startup.