Oil holds onto gains as investors bet on tighter supply