The stabbing of a teenager and dozens of unrelated arrests have marred New Year's Eve celebrations in Sydney.