Finite-size scaling in the theory above the upper critical dimension