The Equality and Human Rights Commission (EHRC) has written to all five magic circle firms to warn that it could take legal action if they fail to take appropriate action to prevent and respond to sexual harassment in the workplace.