Moldovan president cancels snap elections