During positive half cycle the upper capacitor gets charged up to maximum voltage Vm while during negative half cycle lower capacitor gets charged up to Vm thus giving effective voltage of 2Vm.
Diodes are used to prevent the capacitors from discharging.