Resonantly enhanced transmission of terahertz radiation through a periodic array of subwavelength apertures