The Government has unveiled a scheme to help communities stop young people getting involved in gangs.