Three Malaysians who became the first women to be caned under the country's Islamic laws said they "deserved" their punishment and that it would help stem sex outside marriage.