A new “online hospital” will deliver millions of appointments and help slash waiting lists, Sir Keir Starmer will announce.