Sir Bradley Wiggins saw his race lead cut to 24 seconds at the Tour of California after rival Rohan Dennis jumped clear on stage three.