Drosophila melanogaster females change mating behaviour and offspring production based on social context