Serre weights and wild ramification in two-dimensional mod p Galois representations