A new law makes stalking a criminal offence punishable by up to five years in prison.