Five British sailors have been detained in Iran after their racing yacht was stopped by the Iranian navy.