Exact solution and asymptotic behaviour of the asymmetric simple exclusion process on a ring