The pay gap between men and women will be under greater scrutiny with the start of a new law requiring businesses to publish that their employees earn.