Danish Prime Minister Metter Frederiksen suffered minor whiplash in a street attack that follows a wave of attacks on politicians across Europe.