Metals struggle as energy posts gains on the week