Portuguese rider Afonso Eulalio secures overall Giro lead as Spain's Igor Arrieta wins the fifth stage after both crash in wet conditions.