Gravitational instabilities in a protosolar-like disc – I. Dynamics and chemistry