Russia's President Vladimir Putin says the organisers of an attempted military rebellion have betrayed their country and will be brought to justice.