HESS and Fermi-LAT discovery of gamma-rays from the blazar 1ES 1312-423