A new book collects photographs of male romance over the course of a century – with many images taken secretively so the lovers didn’t get caught