Stochastic and deterministic phase slippage in quasi-one-dimensional superconducting nanowires exposed to microwaves