Russia's secret service says it has foiled terrorist plots in the 2014 Olympic city of Sochi.