Mutation in triangulated categories and rigid Cohen–Macaulay modules