Mark Cavendish (QuickStep-AlphaVinyl) claimed his second British road race title after storming to victory in Dumfries and Galloway.