Law firms warned over women's pay