EU 'agrees' on plan to bolster banks