Mongolia's ruling party wins elections as rioting subsides