Students hoping to become doctors in Thailand have been caught cheating in their exams using hi-tech gadgets.