Caparros pens Bilbao contract