Cost-cuts help Tata Motors reduce loss in Q2