The ESO nearby Abell cluster survey. IV. The fundamental plane of clusters of galaxies