Residents favour legalized prostitution: survey