The evolution of gravitationally unstable protoplanetary discs : from instability to stability