A new programme will also help young people who want to leave gangs make a clean break and rebuild their lives.