The Spanish defender announced he will be retiring after Barcelona's game against Almeria on Saturday