Rupee gains as oil retreats; RBI intervention, inflows in focus