On the Auslander-Reiten conjecture for Cohen-Macaulay rings and path algebras