Sir Bradley Wiggins moved into the overall lead at the Tour of Britain by winning the stage three time trial.