A teenager has been charged with alleged terrorism offences following an incident in Greenock yesterday.