US says it will reduce detention of immigrant families