Pastor apologizes for making girls wear one-piece swimsuits to prevent attention from boys