French president accepts premier's resignation following snap election results