Fabrice Leggeri, the head of EU border protection agency Frontex, has resigned with immediate effect, the agency's governing board says, after allegations his forces had illegally pushed back refugees in the Mediterranean.