On the distribution of roots of Riemann zeta and allied functions, I