Evidence of a population of dark subhaloes from Gaia and Pan-STARRS observations of the GD-1 stream