Germany have sacked manager Hansi Flick just nine months before the start of their home European Championships next summer.