Alberto Contador completed overall victory at Tirreno-Adriatico with Sir Bradley Wiggins finishing third.