D.R. Horton records a first-quarter loss