Quantum spherical models for dirty phase transitions