Madras HC directs authorities to implement dress code for devotees visiting temples