Former prime minister Tony Abbott has lost his northern beaches seat