Hong Kong stocks end with losses