Any town, city or borough, by charter or ordinance, may adopt a code of prohibited discriminatory practices and may establish or designate a board, commission, council, committee or other agency to investigate any allegation of discriminatory practice.