The Islamic State group has claimed responsibility for a truck attack on a crowded Berlin Christmas market that left 12 people dead and nearly 50 injured.