pp annihilation into π+π− and K+K− at 5 GeV/c