Physical and chemical fingerprint of protostellar disc formation