Variational principles for fluid dynamics on rough paths