Hamilton takes five-place grid penalty in Brazil