Critical properties and finite-size effects of the five-dimensional Ising model