Wales held on to see off a battling Fiji side and win their third consecutive game of the Rugby World Cup.