Thousands of masked demonstrators broke into legislature, toppling portraits of leaders and defacing building