People who intentionally stir up homophobic hatred could face up to seven years in prison under a new criminal offence introduced today.