The GAPS programme with HARPS-N at TNG. VII. Putting exoplanets in the stellar context: magnetic activity and asteroseismology of tau Bootis A