Relativistic distribution function for particles with spin at local thermodynamical equilibrium