Ground-state fidelity at first-order quantum transitions