Residents of the Japanese city of Hamamatsu have been urged to evacuate on Friday after heavy rains caused the Magome river to burst its banks.