Galaxy And Mass Assembly (GAMA): the 325 MHz radio luminosity function of AGN and star-forming galaxies