Galaxy And Mass Assembly (GAMA): stellar mass functions by Hubble type