The PLATO Simulator: modelling of high-precision high-cadence space-based imaging