Police forces have missed several chances to make facial recognition fit for purpose, finds BBC probe.