Sebastien Loeb has won the World Rally Championship for a record-extending sixth time after claiming Rally GB victory.