A systematic survey of millimetre-wavelength flaring variability of young stellar objects in the Orion Nebula Cluster