Accelerating cosmological inference with Gaussian processes and neural networks - an application to LSST Y1 weak lensing and galaxy clustering