A BBC Panorama investigation into an alleged stalker ended in farce when the team spent a week pursuing the wrong man.