Galaxy and Mass Assembly (GAMA): active galactic nuclei in pairs of galaxies