Inter-bank: rupee ends losing streak with marginal gain against US dollar