WhiskyMHD: a new numerical code for general relativistic magnetohydrodynamics