Private renters stuck in dangerous homes 'failed' by councils

People renting dangerous homes are often being let down by councils, a BBC investigation finds.