As the National Theatre prepares to revive Follies for its first full staging in three decades, Nick Smurthwaite looks at the inspiration