The Spanish-owned bank will close 15% of its branches as it aims to make £100m of cost savings.