Google, which has announced efforts to increase diversity, is being investigated over allegations of gender pay inequality.