With his collection of Pet Shop Boys lyrics about to be published, the musician talks about songwriting through the Thatcher era, the Aids crisis and the age of Brexit