A plan to merge four struggling Spanish banks has collapsed over the weak state of one of the institutions known as cajas. Three of the banks that were to form the Banco Base said that Caja Mediterráneo was heavily exposed to the Spanish housing market and that would require the new entity to raise so much capital to cover that bank’s impaired property assets that it was in danger of becoming nationalized.