Spectral properties and localization of an electron in a two-dimensional system with point scatterers in a magnetic field