Oscillatory instability of radiative shocks with transverse magnetic field : linear analysis and nonlinear simulations