On L-spaces and left-orderable fundamental groups