Deadly floods that have killed five people in Germany have spread across Austria and Hungary.