Elia Viviani beat Belgium’s Yves Lampaert in a two-up sprint to retain the European Championship for Italy.