Cressida Dick has resigned as commissioner of the Metropolitan Police after being accused of failing to deal with a culture of misogyny and racism