Lewis Hamilton survived a first corner scare at the Mexican Grand Prix to claim his eighth victory of the season and further eat into the championship lead of his Mercedes teammate Nico Rosberg.