Learning to Bid in Repeated First-price Auctions