Harmonic maps into metric spaces with upper curvature bounds