Stefan Kung dominated the elite men's time trial at the European Championships as he won by 17 seconds from Remi Cavagna.