Mann's replacement theorem for subgroups of prime exponent