Modelling stellar variability and correlated noise in photometric time-series with Gaussian processes