Relativistic resistive dissipative magnetohydrodynamics from the relaxation time approximation