Ferguson believes he 'chose right moment' to quit