Salmon farmers are investing nearly £2 million in projects to restore rivers and protect wild salmon and sea trout populations across Scotland.