The resistive transition in weakly coupled superconductors