The UK is facing an "economic catastrophe" unless it adapts to younger generations who have grown up in a digital world, a former minister has warned.