Critical behaviour of the three-dimensional XY universality class