Theory for superconductivity in amorphous transition metals