Superconducting, electronic and magnetic anomalies due to structural transition around x=0.12 in La2-xBaxCuO4