Identification of heavy-flavour jets with the CMS detector in pp collisions at 13 TeV