Far-right Dutch politician Geert Wilders has withdrawn a proposed legislation from 2018 that called for a ban on mosques and the Quran, officials say.