The spectrum of solar p-modes and the solar activity cycle