Rupee ends higher, mild inflows aid recovery from record low