X-ray properties of NGC 300 - I. Global properties of X-ray point sources and their optical counterparts