Government to introduce online trolling legislation