RF assisted switching in magnetic Josephson junctions