Coexistence of ferro- and antiferromagnetism and phase transitions in itinerant electron systems