The introduction of a prison term of up to one year and other tougher penalties for online insults will come into effect on July 7 as part of Japan's efforts to tackle cyberbullying.