Hundreds of Britons have been detained in Thailand on suspicion of attempting to smuggle cannabis to the UK.