Scattering equations in AdS: scalar correlators in arbitrary dimensions