Tata retains second spot as Mahindra closes in Maruti remains first in July sales