The BBC has given a “full and unreserved apology” for not doing enough to help staff who alleged relentless abuse by a stalker.