German fintech hits €12.5bn valuation in deal backed by Peter Thiel