Around 300 people were dispersed by police after gathering for an illegal lockdown rave on a farm near Wigan on Halloween.