Lessons in cybersecurity will be delivered to schoolchildren across the UK in response to growing concerns about a rising skills gap in the industry.