Primoz Roglic has made a late charge to take the lead from local favorite Juan Ayuso and win the Volta a Catalunya.