A teenager has been charged with terrorism-related offences, including “plans for acts of extremist violence”.