CP asymmetries in three-body final states in charged D decays and CPT invariance