Nico Rosberg has ensured that the Formula 1 title race will go right down to the wire after beating team-mate Lewis Hamilton to victory at the Brazilian Grand Prix.