Resistive transition in disordered superconductors with varying intergrain coupling