Hong Kong democracy campaigner Joshua Wong has pleaded guilty to a charge that could see him sentenced to life in prison.