The Heritability of Mating Behaviour in a Fly and Its Plasticity in Response to the Threat of Sperm Competition