Nikkei rises to 5-week high as miners help, weak yen lifts risk appetite