American 400m runner Debbie Dunn has voluntarily withdrawn from the 2012 Olympics after returning a positive drugs test.