Relationship between the parent charge transfer gap and maximum transition temperature in cuprates