It is complicated by the fact that it is an impossible question. You say there is no magnetic energy because there is no inductance. But there is an infinite amount of current. In fact, there is an infinite amount of current squared! I say my infinite current [squared] trumps your zero inductance! There WOULD BE magnetic energy there, in this dream-world fantasy!
This is quite a simple problem to sort out, even if you do not have all the info for the losses. All you need to recognise is that there will be energy losses. Then you treat the two capacitors as parallel (hence you can deduce a sum capacitance, C1+C2). Then you calculate the amount of charge present before the switch was thrown. The charge cannot be lost, as the + and - terminals of each capacitor, so to speak, are mutually isolated. So we then know charge, and total capacitance - from whence the voltage is defined!
Interestingly, you could stick a megohm or a milliohm resistance in the way, a Henry's worth of inductance, with a big Q or a little Q, or none at all, but the energy lost would be the same. Intuitively a bit wierd, but there it is! The charge and capacitances are immutable values, so the final energy must also be immutable.
(It is so counter-intuitive, I am not even sure of this! Can anyone spot any flaws?)