Sex offenders on trains are escaping justice because of serious issues with CCTV on the rail network - BBC investigation.