It is permitted to eat and drink and sleep in the masjid, but extreme care should be taken to safeguard the cleanliness of the Masjid. The person may be a party to weddings and some legal contracts taking place in the masjid during the I'etikaaf . Exiting from the masjid without any good reason, even if it is for a moment, because that is one of its pillars. Insanity due to madness , drugs or intoxicants, for sanity is prerequisite in all forms of worship. But do not associate with wives while you are in retreat in the masaajid.
Nothing is wrong with touching one's spouse provided it is free from passion.
This does not include kissing. If one kisses or touches his spouse with passion, he or she has done wrong, for it contradicts the spirit of I'etikaaf , but the I'etikaaf is valid provided he does not discharge semen. That is according to Imams Abu Hanifah and Ahmed. Imam Malik, on the other hand, said in this instance, the I'etikaaf becomes invalid because this is illegal association, even without discharge of semen. The point here is an usuulul Fiqh , Islamic legal theory question.