A new law that criminalises denial-of-service (DoS) attacks and the supply of hacking tools has been brought into force in England and Wales.