Too Popular, Too Fast: Optimal Advertising and Entry Timing in Markets with Peer Influence