The federal government will invest $23 million to help support young men and boys at risk of engaging in family, domestic and sexual violence.