A dynamical network model for melt ponds on sea ice