Five people were stabbed on the closing day of the Notting Hill Carnival, the Metropolitan Police said.