Bahrain says major terror plot foiled