Quantum metrology assisted by abstention