N-body modelling of globular clusters: masses, mass-to-light ratios and intermediate-mass black holes