FC Barcelona’s hopes of reaching the Copa del Rey final were dashed as they lost to Atlético Madrid on aggregate, despite a spirited performance in the second leg.