Pavel Sivakov took the overall victory at the Tour of the Alps as Fausto Masnada won the fifth and final stage in Bolzano.