Caixabank and state-owned Bankia on Friday announced the details of a merger to create Spain's biggest domestic bank by assets.