Shia LaBeouf ordered to undergo anger management and therapy to avoid jail time