Primoz Roglic underlined his yellow jersey credentials with a brilliant win on Stage 4 at the Tour de France.