Finite-size scaling and the renormalization group