A campaign group says inquiries about previous pay when recruiting increases the gender pay gap.