MI5-linked Metropolitan Police undercover officers infiltrated UK political activist groups for decades, forming false identities and sexual relationships with targets.