Learning for Cross-Layer Resource Allocation in MEC-Aided Cell-Free Networks