A relation between p-adic L-functions and the Tamagawa number conjecture for Hecke characters