Fiserv has struck a deal to buy First Data for $22 billion, combining two companies that, though largely unknown to consumers, provide much of the financial technology that connects Wall Street to Main Street.