Mean and large values of Dirichlet polynomials