British Touring Car Championship rookie George Gamble took his maiden series victory in the reversed-grid finale to the Knockhill round.