Isotope effect in a superconductor with strong anharmonicity