Ground state properties of a Bose-Einstein condensate confined in an anharmonic external potential