The leaders of Germany and France, the eurozone's two biggest economies, say they have reached agreement on strengthening Europe's shaky banking sector.