Patients in south Wales are facing lengthy NHS delays due to cross-border confusion.