A man was prescribed sex twice a day by the doctor for his health